/*
 * To change this template ,String   choose Tools | Templates
 * and open the template in the editor.
 */
package ACH.object;

import java.text.DecimalFormat;

/**
 *
 * @author adriancruz11c
 */
public class ResultOfMetrics {
    private String resultSyn;
    private String synNGD;
    private String cooc;
    private String paraphrase;
    private String resulySynWRF;
    private String finalMetric;
    private String qt1;
    private String qt2;
    private boolean []considerMetric;
    private String synonym;
    private String hyponymWeb;
    //ant:
    private double antPatternWeb;
    private String antonymWNet;
    private String lexPatternLocal;
    
    private String clas_s;
    
    
    
    public ResultOfMetrics(double resultSyn ,double   synNGD ,double   cooc ,double   paraphrase ,double   resulySynWRF , 
            double finalMetric, boolean  []considerMetric, 
            boolean synonymWNt, boolean hyponym, 
            double antPatternWeb, boolean isAntonymWNet, boolean lexPatternLocal,
            String qt1, String qt2, String marked ){
        System.out.println("*****************************************************");
        System.out.println(
                "    "+ resultSyn + "    "+   synNGD + "    "+   cooc + "    "+   paraphrase + "    "+   resulySynWRF + 
            "    "+ finalMetric + "    "+ 
             "    "+ synonymWNt + "    "+ hyponym+
             "    "+ antPatternWeb+ "    "+ isAntonymWNet + "    "+ lexPatternLocal+
            "  "+qt1+" "+ qt2);
                
        
      DecimalFormat df = new DecimalFormat("0.00000"); 
      //System.out.println(df.format(x));
      this.resultSyn=""+ df.format(resultSyn);
      this.synNGD=""+ df.format(synNGD);
      this.cooc=""+ df.format(cooc);
      this.paraphrase=""+ df.format(paraphrase);
      this.resulySynWRF=""+ df.format(resulySynWRF);
      this.finalMetric=""+ df.format(finalMetric);
      this.considerMetric=considerMetric;
      if(synonymWNt)      this.synonym="T";    else this.synonym="F";
      if (hyponym)     this.hyponymWeb="T";    else this.hyponymWeb="F";
      this.qt1=qt1;
      this.qt2=qt2;
      
      if (!considerMetric[0]) this.resultSyn="N/A";
      if (!considerMetric[1]) this.synNGD="N/A";
      if (!considerMetric[2]) this.cooc="N/A";
      if (!considerMetric[3]) this.paraphrase="N/A";
      if (!considerMetric[4]) this.resulySynWRF="N/A";     
      
      this.antPatternWeb=antPatternWeb;
      if (isAntonymWNet)    this.antonymWNet="T";       else this.antonymWNet="F";
      if (lexPatternLocal)  this.lexPatternLocal="T"; else this.lexPatternLocal="F";
      
      
      
      this.clas_s=""+marked.toUpperCase();
          
    }
/*
    public boolean isHyponym() {
        return hyponym;
    }

    public boolean isSynonym() {
        return synonym;
    }
*/
    public String getHyponymWeb() {
        return hyponymWeb;
    }

    public String getSynonym() {
        return synonym;
    }

    
    public String getQt1() {
        return qt1;
    }

    public String getQt2() {
        return qt2;
    }

    public boolean[] getConsiderMetric() {
        return considerMetric;
    }

    public String getFinalMetric() {
        return finalMetric;
    }

    public String getCooc() {
        return cooc;
    }

    public String getParaphrase() {
        return paraphrase;
    }

    public String getResultSyn() {
        return resultSyn;
    }

    public String getResulySynWRF() {
        return resulySynWRF;
    }

    public String getSynNGD() {
        return synNGD;
    }
    
    
    //Ant

    public String getAntonymWNet() {
        return antonymWNet;
    }

    public String getLexPatternLocal() {
        return lexPatternLocal;
    }

    
    

    public double getAntPatternWeb() {
        return antPatternWeb;
    }

    public String getClas_s() {
        return clas_s;
    }


    
    
}
